package com.bx.implatform.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;

/**
 * @author Stylesmile
 * @since 2024-08-24
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName("im_friend_apply")
@Schema(description = "好友申请")
public class FriendApply extends Model<FriendApply> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 发送用户id
     */
    @TableField("send_id")
    private Long sendId;

    /**
     * 接收用户id
     */
    @TableField("recv_id")
    private Long recvId;

    /**
     * 发送内容
     */
    @TableField("content")
    private String content;

    /**
     * 状态
     */
    @Schema(description = "状态0未处理，1回复中，2已完成")
    @TableField("status")
    private Integer status;

    /**
     * 时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

}
